package com.edu.dao;

import com.edu.pojo.Department;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 查询全部的部门；
 * id ==> name
 * name ==> id
 * 根据name获得id
 *
 */
public interface DepartmentMapper {
    List<Department> getAllDepartment();

    String getNameByID(int id);

    int getIdByName(String name);
}
